package service

import (
	"context"
	"gitee.com/sdynasty/yogurt/toolkit/strings"
	"multihigh/api/thirdbottom"
)

type ThirdBottomService struct {
	thirdbottom.UnimplementedThirdBottomServer
}

func NewThirdBottomService() *ThirdBottomService {
	return &ThirdBottomService{}
}

func (s *ThirdBottomService) ObtainPermission(ctx context.Context, in *thirdbottom.ObtainPermissionRequest) (*thirdbottom.ObtainPermissionReply, error) {
	return &thirdbottom.ObtainPermissionReply{Licence: strings.BuildCasualString(strings.CasualNumberAndLetter, 4)}, nil
}
